<%
    response.setHeader("Cache-Control", "no-store");
%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>Detail fotky</title></head>
<body>

<h1>Detail fotky</h1>

<jsp:useBean id="albumBean" scope="session" type="cz.vse.javaee.album.AlbumPageBean"/>

Název: ${albumBean.detailBean.photo.name}<br>
Popis: ${albumBean.detailBean.photo.description}<br>
Náhled:<br>
<img src="photo/" alt="${albumBean.detailBean.photo.name}">

<h2>Operace</h2>
<h3>Změna velikosti</h3>
<form action="album" method="post">
    <input type="hidden" name="action" value="resize">
    <label for="width">Šířka</label><br>
    <input id="width" type="text" name="width" value=""><br>
    <label for="height">Výška</label><br>
    <input id="height" type="text" name="height" value=""><br>
    <input type="submit" value="Změnit"><br>
</form>

<h3>Otočení</h3>
<form action="album" method="post">
    <input type="hidden" name="action" value="rotate">
    <label for="angle">Úhel</label><br>
    <input id="angle" type="text" name="angle" value="0"><br>
    <input type="submit" value="Otočit"><br>
</form>

<form action="album" method="post">
    <input type="hidden" name="action" value="save">
    <input type="submit" value="Uložit"><br>
</form>
<form action="album" method="post">
    <input type="hidden" name="action" value="refresh">
    <input type="submit" value="Obnovit"><br>
</form>

<form action="album" method="post">
    <input type="hidden" name="action" value="cancel">
    <input type="submit" value="Zrušit"><br>
</form>

</body>
</html>